@use "../mixins" as *;

.menu-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 20px;
  height: var(--nav-height);
  margin: 0 14px;
  cursor: pointer;

  @include respond-to("md") {
    display: none;
  }

  > span {
    width: 100%;
    height: 2px;
    margin: 2px 0;
    background-color: var(--text-color);
    border-radius: 10px;
    transition: var(--el-transition-all);

    &.hamburger {
      &-1 {
        width: 50%;
      }

      &-3 {
        width: 75%;
      }
    }
  }

  &.active {
    .hamburger {
      &-1 {
        transform: rotateZ(45deg) translate(13px, 0);
        transform-origin: bottom;
      }

      &-2 {
        transform: rotateZ(-45deg);
        transform-origin: top;
      }

      &-3 {
        width: 50%;
        transform: translate(2px, -10px) rotateZ(45deg);
        transform-origin: bottom;
      }
    }
  }
}
